
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := httpreq_static
LOCAL_MODULE_FILENAME := libhttpreq

LOCAL_SRC_FILES := \
    $(LOCAL_PATH)/../package_httpreq_register.cpp \
    $(LOCAL_PATH)/../httprequest/CCHTTPRequestAndroid.cpp \
    $(LOCAL_PATH)/../httprequest/httprequest_luabinding.cpp

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/.. 

LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES) \
					$(LOCAL_PATH)/../httprequest \
                    $(LOCAL_PATH)/../../../frameworks/cocos2d-x/cocos \
                    $(LOCAL_PATH)/../../../frameworks/cocos2d-x/external \
                    $(LOCAL_PATH)/../../../frameworks/cocos2d-x/external/lua/lua  \
                    $(LOCAL_PATH)/../../../frameworks/cocos2d-x/external/lua/tolua \
                    $(LOCAL_PATH)/../../../frameworks/cocos2d-x/cocos/scripting/lua-bindings/manual

LOCAL_CFLAGS := -DCC_LUA_ENGINE_ENABLED=1 $(ANDROID_COCOS2D_BUILD_FLAGS)

LOCAL_EXPORT_CFLAGS := -DCC_LUA_ENGINE_ENABLED=1

include $(BUILD_STATIC_LIBRARY)
